package com.dsh.materialSetting.service.impl;

import com.dsh.materialSetting.dao.MaterialSettingDao;
import com.dsh.materialSetting.entity.MaterialSetting;
import com.dsh.materialSetting.entity.PurchaseSetting;
import com.dsh.materialSetting.service.MaterialSettingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 物资设置(MaterialSetting)表服务实现类
 *
 * @author makejava
 * @since 2022-05-12 16:19:03
 */
@Service("materialSettingService")
public class MaterialSettingServiceImpl implements MaterialSettingService {
    @Resource
    private MaterialSettingDao materialSettingDao;

    @Override
    public MaterialSetting selectOneMaterial() {
        MaterialSetting materialSetting = materialSettingDao.selectOneMaterial();
        return materialSetting;
    }

    @Override
    public List<PurchaseSetting> selectAllPurchase() {
        List<PurchaseSetting> purchaseSettings = materialSettingDao.selectAllPurchase();
        return purchaseSettings;
    }

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */

}